package com.yanfan.iot.tdengine.config;


import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Setter
@Getter
@Component
public class TDengineDatabaseConfig {

    @Value("${spring.datasource.druid.tdengine-server.enabled}")
    private Boolean enabled;
    @Value("${spring.datasource.druid.tdengine-server.url}")
    private String dbUrl;
    @Value("${spring.datasource.druid.tdengine-server.username}")
    private String username;
    @Value("${spring.datasource.druid.tdengine-server.password}")
    private String password;
    @Value("${spring.datasource.druid.tdengine-server.driverClassName}")
    private String driverClassName;
    @Value("${spring.datasource.druid.tdengine-server.dbName}")
    private String dbName;
    @Value("${spring.datasource.druid.tdengine-server.precision:us}")
    private String precision;
    @Value("${spring.datasource.druid.tdengine-server.keep:3650}")
    private Integer keep;
    @Value("${spring.datasource.druid.tdengine-server.duration:1}")
    private Integer duration;
    @Value("${spring.datasource.druid.tdengine-server.buffer:32}")
    private Integer buffer;
    @Value("${spring.datasource.druid.tdengine-server.charset:UTF-8}")
    private String charset;
    @Value("${spring.datasource.druid.tdengine-server.timezone:UTC-8}")
    private String timezone;
}
